package cn.com.cennavi.fileMake;

public class LaneBean {
	public String ID;
	public String MapID;
	public String LinkID;
	public String TravelFlag;
	public String Seq_Nm;
	public String Lane_Form;
	public String Lane_Dir;
	public String Lane_Type;
	public String Arrow_Dir;
	public String Lane_Mark;
	public String Width;
	public String Res_Height;
	public String MaxSpeed;
	public String Divider;
	public String Center_Div;

	/**
	 * 解析字符串对象
	 * 
	 * @param line
	 * @return
	 */
	public static LaneBean parseData(String line) {
		String[] lineArr = line.split(",");
		if (lineArr.length == 15) {
			LaneBean data = new LaneBean();
			data.ID = lineArr[0].replace("\"", "").trim();
			data.MapID = lineArr[1].replace("\"", "").trim();
			data.LinkID = lineArr[2].replace("\"", "").trim();
			data.TravelFlag = lineArr[3].replace("\"", "").trim();
			data.Seq_Nm = lineArr[4].replace("\"", "").trim();
			data.Lane_Form = lineArr[5].replace("\"", "").trim();
			data.Lane_Dir = lineArr[6].replace("\"", "").trim();
			data.Lane_Type = lineArr[7].replace("\"", "").trim();
			data.Arrow_Dir = lineArr[8].replace("\"", "").trim();
			data.Lane_Mark = lineArr[9].replace("\"", "").trim();
			data.Width = lineArr[10].replace("\"", "").trim();
			data.Res_Height = lineArr[11].replace("\"", "").trim();
			data.MaxSpeed = lineArr[12].replace("\"", "").trim();
			data.Divider = lineArr[13].replace("\"", "").trim();
			data.Center_Div = lineArr[14].replace("\"", "").trim();
		
			return data;
		} else {
			return null;
		}
	}
}
